﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理员列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/static/admin/style/adminStyle.css" rel="stylesheet" type="text/css" />
<script src="/static/admin/js/jquery.js"></script>
<script src="/static/admin/js/public.js"></script>
</head>
<body>
 <div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i class="user"></i><em>管理员列表</em></span>
    <span class="modular fr"><a href="{{url_for('.revise_password')}}" class="pt-link-btn">+添加注册码</a></span>
  </div>
  <table class="list-style Interlaced">
   <tr>
       <th>序号</th>
    <th>注册码</th>
    <th>生成时间</th>
    <th>到期时间</th>
    <th>用户</th>
    <!--<th>有效期</th>-->
   </tr>
   {% for rechargeCard in rechargeCards %}
    <tr>
        <td>{{ loop.index }}</td>
       <td>{{ rechargeCard.code_num }}</td>
       <td>{{ rechargeCard.create_time }}</td>
       <td class="center">{{ rechargeCard.user_time }}</td>
       <td class="center">
           {% if rechargeCard.user_id %}
                {{ rechargeCard.user_id }}
           {% else %}
                尚未使用
           {% endif %}

       </td>
       <!--<td class="center">-->
          <!--<a href="revise_password.html"><img src="/static/admin/images/icon_edit.gif"/></a>-->
          <!--<a><img src="/static/admin/images/icon_drop.gif"/></a>-->
       <!--</td>-->
    </tr>
   {% endfor %}
  </table>
 </div>
<div class="turnPage center fr">
    <a href="{{ url_for('.admin_list') }}?page=1" class="ui-pagination-page-item" >首页</a>
   {% if paginate.has_prev%}
   <a href="{{ url_for('.admin_list') }}?page={{ paginate.prev_num }}" class="ui-pagination-page-item" >上一页</a>
   {% endif %}
   {% for num in paginate.iter_pages() %}
       {% if num == paginate.page %}
        <a href="#">{{ num }}</a>
       {% elif num %}
        <a href="{{ url_for('.admin_list') }}?page={{ num }}">{{ num }}</a>
       {% endif %}

   {% endfor %}
    {% if paginate.has_next%}
   <a href="{{ url_for('.admin_list') }}?page={{ paginate.next_num }}">下一页</a>
    {% endif %}
   <a href="{{ url_for('.admin_list') }}?page={{ paginate.pages }}">尾页</a>
</div>
</body>
</html>